﻿<div class="">
    <div class="row">
        <div class="col-sm-6">
            <a class="btn btn-info" ng-click="back()">
                <b class="glyphicon glyphicon-arrow-left"></b> Back
            </a>
            <button class="btn btn-info navbar-btn" ng-hide="model.id != undefined" ng-disabled="questionForm.$invalid"
                    ng-click="save(model)" success="Created successfully">
                Save
            </button>

        </div>
    </div>
    <div novalidate class="form form-horizontal" name="questionForm">
        <div class="row">
            <div class="col-xs-2">
                <label>Title:</label>
            </div>
            <div class="col-xs-9">
                <a href="#" editable-text="model.title" e-required>{{model.title}}</a>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-2">
                <label>Content:</label>
            </div>
            <div class="col-xs-9">
                <a href="#" editable-textarea="model.content" e-rows="7" e-cols="40" e-required>
                    <pre>{{ model.content || 'no content' }}</pre>
                </a>
            </div>
        </div>
    </div>
</div>